﻿@model qltscd.Models.BaseClient.DanhMucHangSanXuat
@{
    ViewBag.Title = "SuaHangSanXuat";
    Layout = "~/Views/Shared/Modules/_LayoutDanhMucNhapLieu.cshtml";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script>
    function submitTaoHangSanXuat(kieu) {
        document.getElementById("kieu").value = kieu;
        document.forms["TaoHangSanXuat"].submit();
    }
</script>
@using (Html.BeginForm("SuaHangSanXuat", "DanhMucHangSanXuat", FormMethod.Post, new { @id = "TaoHangSanXuat" })) {
    @Html.ValidationSummary(true);
    @Html.HiddenFor(o => o.IdentityHangSanXuat)
    <input type="hidden" value="0" name="kieu" id="kieu" />                            
    <fieldset>
        <legend>Danh Mục Hãng Sản Xuất</legend>
        <table border="0" width="100%" cellpadding="10px" cellspacing="10px">
            <tr>
                <td style="margin-left: 10px;" class="label_col" width="30%">
                    Mã Hãng Sản Xuất
                </td>
                <td>
                    @Html.TextBoxFor(Model => Model.MaHangSanXuat, new { @style = "width:97%; " })

                </td>
            </tr>
            <tr>
                <td style="margin-left: 10px;" class="label_col">
                    Tên Hãng Sản Xuất
                </td>
                <td>
                    @Html.TextBoxFor(Model => Model.TenHangSanXuat, new { @style = "width:97%; " })

                </td>
            </tr>
            <tr>
                <td style="margin-left: 10px;" class="label_col">
                    Trang Web
                </td>
                <td>
                    @Html.TextBoxFor(Model => Model.TrangWeb, new { @style = "width:97%; " })
                    
                </td>
            </tr>
        </table>
        @*<p>
            <input type="submit" value="Create" />
        </p>*@
    </fieldset>
    <div class="divButton">
        <input type="submit" value="Lưu" class="button" />&nbsp;
        @*<input type="button" value="Lưu và nhập mới" class="button" onclick="submitTaoHangSanXuat(1)" />&nbsp;*@
        <input type="reset" value="Nhập lại" class="button" />&nbsp;
        @Html.ActionLink("Thoát", "Index", null, new { @class = "button" })
    </div>
}
<div class="errBlock">
                    @Html.ValidationMessageFor(Model => Model.MaHangSanXuat, "", new { @style = "display:block" })

                    @Html.ValidationMessageFor(Model => Model.TenHangSanXuat, "", new { @style = "display:block" })

                    @Html.ValidationMessageFor(Model => Model.TrangWeb, "", new { @style = "display:block" })
</div>